package org.nokatag.system;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;

import org.noka.http.header.HeaderItem;
import org.noka.http.header.HeaderPrivateItem;
import org.nokatag.Connection.DBConnectionInterface;
import org.nokatag.timer.NTimerItem;

/**
 * @function 系统常量类
 * @author rebin
 * @create 2009-07-27
 * @email xiefangjian@163.com
 */
public class  Concest  {
	public static final String VERSION="6.0.20.20180305";//版本号
	public static String TABLEMODEPATH=null; //表格样式文件
	public static Map<String,String> TABLEMODESTR=new HashMap<String, String>();//主表样式
	public static Map<Integer,String> TABLEMODESUBSTR=new HashMap<Integer, String>();//子表样式
	public static Map<Integer,String> TABLEMODECELLBODY=new HashMap<Integer, String>();//主表自定义单元格样式
	public static String  CONNECTION = null;// "org.nokatag.Connection.HibernateConnection";//数据库联接类
	public static String  PROXOOL_ALIAS= "noka_db";//数据库连接池名称
	public static String  DB_DRIVER=null;
	public static String DB_URL=null;
	public static String DB_USER = null;
	public static String DB_PASSWORD = null;
	public static String DB_SPRING_SESSION_FACTORY=null;//spring hibernate session
	public static String FILESERVERPATH = null;//文件服务器存放文件路径
	public static String XMLCONSTPATH=null;//常量xml 文件路径
	public static Boolean ISDBUG=false;//是否调试模式
	public static String ROOTDIR=null;//系统根目录
	public static String ENCODING="UTF-8";//系统编码
	public static String DEFAULTLANGUAGE=null;//defaultlanguage
	public static String LANGUAGEPATH=null;//语言文件路径
	public static Map<String,String> PAGETEMP=new HashMap<String,String>();//页面常量
	public static String SQLKEY="noka2jkl^swf@#$LKJds567q9KLJ^*1lkjsad";//SQL加密密
	public static String SQLCHECKVALUE="'|and|exec|insert|select|delete|update|count|*|%|chr|mid|master|truncate|char|declare|;|or|--|+|,";//SQL加密密
	public static List<ReValueDoc> REVALUELIST=new ArrayList<ReValueDoc>();//替换列表
	public static HashSet<String> UPDOCTYPE=null;//上传文件类型
	public static List<String> FILEEXTTYPE=new ArrayList<String>();//可读取的文件类型
	public static String UP_FILEID="fileid";//上传的文件id
	public static String UP_FILENAME="filename";//上传的文件名
	public static String UP_FILENAME_COPY="filenamecopy";//上传的文件名副本
	public static String UP_FILECREATEDATE="filecreatedate";//上传文件的创建时间
	public static String UP_FILEPATH="filepath";//文件路径
	public static String UP_FILETYPE="filetype";//文件类型
	public static String UP_FILEJSPTIMEID="jsptimeid";//过滤
	public static String UP_FILESELECTTYPE="selecttype";//过滤类型
	public static String UP_FILEDOCUMENT="filedocument";//文件内容
	public static String UP_FILEEXT=".ncks";//上传文件的后缀名
	public static Integer UP_FILEFILEDSUN=8;//上传文件字段数量
	public static String  UP_FILEFTEXT="filetext";//文件备注
	public static String UP_FILE_PATH="UP_FILE_PATH";//文件路径
	public static String UP_FILE_INPUT_URIL="org.nokatag.system.DefaultFileUploadSave";//默认文件处理类
	public static Boolean CACHE_FILE=true;//是否缓存文件,cache-file
	public static Map<String,Map<String,String>> LANGUAGE_CACHE=new HashMap<String,Map<String,String>>();//语文缓存
	public static Map<String,byte[]> FILE_CACHE=new HashMap<String,byte[]>();//文件缓存
	public static Map<String,Long> FILE_LAST_UPDATE_TIME=new HashMap<String, Long>();//缓存文件最后修改时间
	public static Map<String,String> PAGE_CACHE_JSSORCSS=new HashMap<String,String>();//缓存jsp页面上的css或js代码段
	public static String FILEDBSAVE_TABLE="NK_TAG_FILE";//数据库方式保存上传文件的数据表名
	//public static String DATA_BASE_REQUEST="org.noka.connection";//数据库对像从request里取的名称
	public static Map<String,String> CACHE_FILES=new HashMap<String,String>();//浏览器缓存
	public static Map<String,String> KWORD_CONFIG= new HashMap<String,String>();//验证码
	public static String EXTERNAL_CACHE_FILE_PREFIX=null;//外部缓存文件目录,形台/sss,/ccc
	public static String EXTERNAL_CACHE_FILE_SKIP=null;//跳过的文件名
	public static Boolean EXTERNAL_CACHE_FILE_JSZIP=true;//是否压缩
	public static Boolean EXTERNAL_CACHE_FILE_CSZIP=true;//是否压缩
	
	public static Boolean IS_AUTO_CLOSE_HIBERNATE_ESSION=false;//是否自动关闭hibernate session
	public static List<NFilter>  USER_FILTER= new ArrayList<NFilter>();//外部拦截器
	public static String DBGRID_DATA_SERVER_CLASS = null;//自定义数据处理类
	public static String BUTTON_FILTER_CLASS = null;//自定义button拦截类
	public static String ROOT_PATH_RULE = "1";//rootpath-rule 规则   1 加全路径   2 系统根相对路径   3不加路径
	public static String COOKIE_DOMAIN= null;//域名共享domain
	
	public static String DBGRID_STYLE= "/nokatag/org/nokatag/dbgrid/nokadbgrid.css";//dbgrid css
	public static String PUBLIC_STYLE= "/nokatag/prototype/noka-public.css";//public css
	
	
	public static List<HeaderItem> HTTP_HEADER_PUBLICS = new ArrayList<HeaderItem>();//公共http协议头
	public static List<HeaderPrivateItem> HTTP_HEADER_PRIVATES = new ArrayList<HeaderPrivateItem>();//私有协议头
	public static DBConnectionInterface DB_MANAGER = null;//数据库连接管理类 
	public static Date SYSTEM_START_TIME = null;//系统当前起动时间
	public static List<NTimerItem> TIMER_ITEMS = new ArrayList<NTimerItem>();//定时器
	
	public static String DEFAULT_DATETIME = "yyyy-MM-dd HH:mm:ss";//默认日期时间格式
	public static String DEFAULT_DATE = "yyyy-MM-dd";//默认日期格式
	public static String DEFAULT_TIME = "HH:mm:ss";//默认时间格式
	
	public static String DBGRID_SET_TABLE = "NK_TAG_DBGRIDSET";//dbgrid列信息保存的数据表 dbgrid-settable
	public static String DBGRID_SET_TABLE_MAP = "DBGRID_SET_TABLE_MAP";//dbgrid列信息保存的数据表 dbgrid-settable
	
	public static String SPRING_STARTS_WITH="spring:";//spring 标识符
	public static int SPRING_AUTOWIRE_MODE = 4;//自动装配模式
	
	
	static{
		FILEEXTTYPE.add("gif");
		FILEEXTTYPE.add("jpg");
		FILEEXTTYPE.add("jpeg");
		FILEEXTTYPE.add("png");
		FILEEXTTYPE.add("bmp");
		FILEEXTTYPE.add("tiff");
		FILEEXTTYPE.add("pcx");
		FILEEXTTYPE.add("tga");
		FILEEXTTYPE.add("exif");
		FILEEXTTYPE.add("fpx");
		FILEEXTTYPE.add("svg");
		FILEEXTTYPE.add("psd");
		FILEEXTTYPE.add("cdr");
		FILEEXTTYPE.add("pcd");
		FILEEXTTYPE.add("dxf");
	}
	@SuppressWarnings("serial")
	public final static List<String> NO_CONNECTION_FILE=new ArrayList<String>(){//不需要数据库连接的文件类型
		{
			add("gif");
			add("jpg");
			add("jpeg");
			add("png");
			add("bmp");
			add("tiff");
			add("pcx");
			add("tga");
			add("exif");
			add("fpx");
			add("svg");
			add("psd");
			add("cdr");
			add("pcd");
			add("dxf");
			add(".css");
			add(".js");
			add(".htm");
			add(".html");
			add(".swf");
		}
	};
	@SuppressWarnings("serial")
	public static Map<String,String> NOKA_FILE_TYPE_MIME=new HashMap<String,String>(){//下载文件类型
		{
			put(".323", "text/h323");
			put(".3gp", "video/3gpp");
			put(".aab", "application/x-authoware-bin");
			put(".aam", "application/x-authoware-map");
			put(".aas", "application/x-authoware-seg");
			put(".acx", "application/internet-property-stream");
			put(".ai", "application/postscript");
			put(".aif", "audio/x-aiff");
			put(".aifc", "audio/x-aiff");
			put(".aiff", "audio/x-aiff");
			put(".als", "audio/X-Alpha5");
			put(".amc", "application/x-mpeg");
			put(".ani", "application/octet-stream");
			put(".apk", "application/vnd.android.package-archive");
			put(".asc", "text/plain");
			put(".asd", "application/astound");
			put(".asf", "video/x-ms-asf");
			put(".asn", "application/astound");
			put(".asp", "application/x-asap");
			put(".asr", "video/x-ms-asf");
			put(".asx", "video/x-ms-asf");
			put(".au", "audio/basic");
			put(".avb", "application/octet-stream");
			put(".avi", "video/x-msvideo");
			put(".awb", "audio/amr-wb");
			put(".axs", "application/olescript");
			put(".bas", "text/plain");
			put(".bcpio", "application/x-bcpio");
			put(".bin ", "application/octet-stream");
			put(".bld", "application/bld");
			put(".bld2", "application/bld2");
			put(".bmp", "image/bmp");
			put(".bpk", "application/octet-stream");
			put(".bz2", "application/x-bzip2");
			put(".c", "text/plain");
			put(".cal", "image/x-cals");
			put(".cat", "application/vnd.ms-pkiseccat");
			put(".ccn", "application/x-cnc");
			put(".cco", "application/x-cocoa");
			put(".cdf", "application/x-cdf");
			put(".cer", "application/x-x509-ca-cert");
			put(".cgi", "magnus-internal/cgi");
			put(".chat", "application/x-chat");
			put(".class", "application/octet-stream");
			put(".clp", "application/x-msclip");
			put(".cmx", "image/x-cmx");
			put(".co", "application/x-cult3d-object");
			put(".cod", "image/cis-cod");
			put(".conf", "text/plain");
			put(".cpio", "application/x-cpio");
			put(".cpp", "text/plain");
			put(".cpt", "application/mac-compactpro");
			put(".crd", "application/x-mscardfile");
			put(".crl", "application/pkix-crl");
			put(".crt", "application/x-x509-ca-cert");
			put(".csh", "application/x-csh");
			put(".csm", "chemical/x-csml");
			put(".csml", "chemical/x-csml");
			put(".css", "text/css");
			put(".cur", "application/octet-stream");
			put(".dcm", "x-lml/x-evm");
			put(".dcr", "application/x-director");
			put(".dcx", "image/x-dcx");
			put(".der", "application/x-x509-ca-cert");
			put(".dhtml", "text/html");
			put(".dir", "application/x-director");
			put(".dll", "application/x-msdownload");
			put(".dmg", "application/octet-stream");
			put(".dms", "application/octet-stream");
			put(".doc", "application/msword");
			put(".docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document");
			put(".dot", "application/msword");
			put(".dvi", "application/x-dvi");
			put(".dwf", "drawing/x-dwf");
			put(".dwg", "application/x-autocad");
			put(".dxf", "application/x-autocad");
			put(".dxr", "application/x-director");
			put(".ebk", "application/x-expandedbook");
			put(".emb", "chemical/x-embl-dl-nucleotide");
			put(".embl", "chemical/x-embl-dl-nucleotide");
			put(".eps", "application/postscript");
			put(".epub", "application/epub+zip");
			put(".eri", "image/x-eri");
			put(".es", "audio/echospeech");
			put(".esl", "audio/echospeech");
			put(".etc", "application/x-earthtime");
			put(".etx", "text/x-setext");
			put(".evm", "x-lml/x-evm");
			put(".evy", "application/envoy");
			put(".exe", "application/octet-stream");
			put(".fh4", "image/x-freehand");
			put(".fh5", "image/x-freehand");
			put(".fhc", "image/x-freehand");
			put(".fif", "application/fractals");
			put(".flr", "x-world/x-vrml");
			put(".flv", "flv-application/octet-stream");
			put(".fm", "application/x-maker");
			put(".fpx", "image/x-fpx");
			put(".fvi", "video/isivideo");
			put(".gau", "chemical/x-gaussian-input");
			put(".gca", "application/x-gca-compressed");
			put(".gdb", "x-lml/x-gdb");
			put(".gif", "image/gif");
			put(".gps", "application/x-gps");
			put(".gtar", "application/x-gtar");
			put(".gz", "application/x-gzip");
			put(".h", "text/plain");
			put(".hdf", "application/x-hdf");
			put(".hdm", "text/x-hdml");
			put(".hdml", "text/x-hdml");
			put(".hlp", "application/winhlp");
			put(".hqx", "application/mac-binhex40");
			put(".hta", "application/hta");
			put(".htc", "text/x-component");
			put(".htm", "text/html");
			put(".html", "text/html");
			put(".hts", "text/html");
			put(".htt", "text/webviewhtml");
			put(".ice", "x-conference/x-cooltalk");
			put(".ico", "image/x-icon");
			put(".ief", "image/ief");
			put(".ifm", "image/gif");
			put(".ifs", "image/ifs");
			put(".iii", "application/x-iphone");
			put(".imy", "audio/melody");
			put(".ins", "application/x-internet-signup");
			put(".ips", "application/x-ipscript");
			put(".ipx", "application/x-ipix");
			put(".isp", "application/x-internet-signup");
			put(".it", "audio/x-mod");
			put(".itz", "audio/x-mod");
			put(".ivr", "i-world/i-vrml");
			put(".j2k", "image/j2k");
			put(".jad", "text/vnd.sun.j2me.app-descriptor");
			put(".jam", "application/x-jam");
			put(".jar", "application/java-archive");
			put(".java", "text/plain");
			put(".jfif", "image/pipeg");
			put(".jnlp", "application/x-java-jnlp-file");
			put(".jpe", "image/jpeg");
			put(".jpeg", "image/jpeg");
			put(".jpg", "image/jpeg");
			put(".jpz", "image/jpeg");
			put(".js", "application/x-javascript");
			put(".jwc", "application/jwc");
			put(".kjx", "application/x-kjx");
			put(".lak", "x-lml/x-lak");
			put(".latex", "application/x-latex");
			put(".lcc", "application/fastman");
			put(".lcl", "application/x-digitalloca");
			put(".lcr", "application/x-digitalloca");
			put(".lgh", "application/lgh");
			put(".lha", "application/octet-stream");
			put(".lml", "x-lml/x-lml");
			put(".lmlpack", "x-lml/x-lmlpack");
			put(".log", "text/plain");
			put(".lsf", "video/x-la-asf");
			put(".lsx", "video/x-la-asf");
			put(".lzh", "application/octet-stream");
			put(".m13", "application/x-msmediaview");
			put(".m14", "application/x-msmediaview");
			put(".m15", "audio/x-mod");
			put(".m3u", "audio/x-mpegurl");
			put(".m3url", "audio/x-mpegurl");
			put(".m4a", "audio/mp4a-latm");
			put(".m4b", "audio/mp4a-latm");
			put(".m4p", "audio/mp4a-latm");
			put(".m4u", "video/vnd.mpegurl");
			put(".m4v", "video/x-m4v");
			put(".ma1", "audio/ma1");
			put(".ma2", "audio/ma2");
			put(".ma3", "audio/ma3");
			put(".ma5", "audio/ma5");
			put(".man", "application/x-troff-man");
			put(".map", "magnus-internal/imagemap");
			put(".mbd", "application/mbedlet");
			put(".mct", "application/x-mascot");
			put(".mdb", "application/x-msaccess");
			put(".mdz", "audio/x-mod");
			put(".me", "application/x-troff-me");
			put(".mel", "text/x-vmel");
			put(".mht", "message/rfc822");
			put(".mhtml", "message/rfc822");
			put(".mi", "application/x-mif");
			put(".mid", "audio/mid");
			put(".midi", "audio/midi");
			put(".mif", "application/x-mif");
			put(".mil", "image/x-cals");
			put(".mio", "audio/x-mio");
			put(".mmf", "application/x-skt-lbs");
			put(".mng", "video/x-mng");
			put(".mny", "application/x-msmoney");
			put(".moc", "application/x-mocha");
			put(".mocha", "application/x-mocha");
			put(".mod", "audio/x-mod");
			put(".mof", "application/x-yumekara");
			put(".mol", "chemical/x-mdl-molfile");
			put(".mop", "chemical/x-mopac-input");
			put(".mov", "video/quicktime");
			put(".movie", "video/x-sgi-movie");
			put(".mp2", "video/mpeg");
			put(".mp3", "audio/mpeg");
			put(".mp4", "video/mp4");
			put(".mpa", "video/mpeg");
			put(".mpc", "application/vnd.mpohun.certificate");
			put(".mpe", "video/mpeg");
			put(".mpeg", "video/mpeg");
			put(".mpg", "video/mpeg");
			put(".mpg4", "video/mp4");
			put(".mpga", "audio/mpeg");
			put(".mpn", "application/vnd.mophun.application");
			put(".mpp", "application/vnd.ms-project");
			put(".mps", "application/x-mapserver");
			put(".mpv2", "video/mpeg");
			put(".mrl", "text/x-mrml");
			put(".mrm", "application/x-mrm");
			put(".ms", "application/x-troff-ms");
			put(".msg", "application/vnd.ms-outlook");
			put(".mts", "application/metastream");
			put(".mtx", "application/metastream");
			put(".mtz", "application/metastream");
			put(".mvb", "application/x-msmediaview");
			put(".mzv", "application/metastream");
			put(".nar", "application/zip");
			put(".nbmp", "image/nbmp");
			put(".nc", "application/x-netcdf");
			put(".ndb", "x-lml/x-ndb");
			put(".ndwn", "application/ndwn");
			put(".nif", "application/x-nif");
			put(".nmz", "application/x-scream");
			put(".nokia-op-logo", "image/vnd.nok-oplogo-color");
			put(".npx", "application/x-netfpx");
			put(".nsnd", "audio/nsnd");
			put(".nva", "application/x-neva1");
			put(".nws", "message/rfc822");
			put(".oda", "application/oda");
			put(".ogg", "audio/ogg");
			put(".oom", "application/x-AtlasMate-Plugin");
			put(".p10", "application/pkcs10");
			put(".p12", "application/x-pkcs12");
			put(".p7b", "application/x-pkcs7-certificates");
			put(".p7c", "application/x-pkcs7-mime");
			put(".p7m", "application/x-pkcs7-mime");
			put(".p7r", "application/x-pkcs7-certreqresp");
			put(".p7s", "application/x-pkcs7-signature");
			put(".pac", "audio/x-pac");
			put(".pae", "audio/x-epac");
			put(".pan", "application/x-pan");
			put(".pbm", "image/x-portable-bitmap");
			put(".pcx", "image/x-pcx");
			put(".pda", "image/x-pda");
			put(".pdb", "chemical/x-pdb");
			put(".pdf", "application/pdf");
			put(".pfr", "application/font-tdpfr");
			put(".pfx", "application/x-pkcs12");
			put(".pgm", "image/x-portable-graymap");
			put(".pict", "image/x-pict");
			put(".pko", "application/ynd.ms-pkipko");
			put(".pm", "application/x-perl");
			put(".pma", "application/x-perfmon");
			put(".pmc", "application/x-perfmon");
			put(".pmd", "application/x-pmd");
			put(".pml", "application/x-perfmon");
			put(".pmr", "application/x-perfmon");
			put(".pmw", "application/x-perfmon");
			put(".png", "image/png");
			put(".pnm", "image/x-portable-anymap");
			put(".pnz", "image/png");
			put(".pot,", "application/vnd.ms-powerpoint");
			put(".ppm", "image/x-portable-pixmap");
			put(".pps", "application/vnd.ms-powerpoint");
			put(".ppt", "application/vnd.ms-powerpoint");
			put(".pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation");
			put(".pqf", "application/x-cprplayer");
			put(".pqi", "application/cprplayer");
			put(".prc", "application/x-prc");
			put(".prf", "application/pics-rules");
			put(".prop", "text/plain");
			put(".proxy", "application/x-ns-proxy-autoconfig");
			put(".ps", "application/postscript");
			put(".ptlk", "application/listenup");
			put(".pub", "application/x-mspublisher");
			put(".pvx", "video/x-pv-pvx");
			put(".qcp", "audio/vnd.qcelp");
			put(".qt", "video/quicktime");
			put(".qti", "image/x-quicktime");
			put(".qtif", "image/x-quicktime");
			put(".r3t", "text/vnd.rn-realtext3d");
			put(".ra", "audio/x-pn-realaudio");
			put(".ram", "audio/x-pn-realaudio");
			put(".rar", "application/octet-stream");
			put(".ras", "image/x-cmu-raster");
			put(".rc", "text/plain");
			put(".rdf", "application/rdf+xml");
			put(".rf", "image/vnd.rn-realflash");
			put(".rgb", "image/x-rgb");
			put(".rlf", "application/x-richlink");
			put(".rm", "audio/x-pn-realaudio");
			put(".rmf", "audio/x-rmf");
			put(".rmi", "audio/mid");
			put(".rmm", "audio/x-pn-realaudio");
			put(".rmvb", "audio/x-pn-realaudio");
			put(".rnx", "application/vnd.rn-realplayer");
			put(".roff", "application/x-troff");
			put(".rp", "image/vnd.rn-realpix");
			put(".rpm", "audio/x-pn-realaudio-plugin");
			put(".rt", "text/vnd.rn-realtext");
			put(".rte", "x-lml/x-gps");
			put(".rtf", "application/rtf");
			put(".rtg", "application/metastream");
			put(".rtx", "text/richtext");
			put(".rv", "video/vnd.rn-realvideo");
			put(".rwc", "application/x-rogerwilco");
			put(".s3m", "audio/x-mod");
			put(".s3z", "audio/x-mod");
			put(".sca", "application/x-supercard");
			put(".scd", "application/x-msschedule");
			put(".sct", "text/scriptlet");
			put(".sdf", "application/e-score");
			put(".sea", "application/x-stuffit");
			put(".setpay", "application/set-payment-initiation");
			put(".setreg", "application/set-registration-initiation");
			put(".sgm", "text/x-sgml");
			put(".sgml", "text/x-sgml");
			put(".sh", "application/x-sh");
			put(".shar", "application/x-shar");
			put(".shtml", "magnus-internal/parsed-html");
			put(".shw", "application/presentations");
			put(".si6", "image/si6");
			put(".si7", "image/vnd.stiwap.sis");
			put(".si9", "image/vnd.lgtwap.sis");
			put(".sis", "application/vnd.symbian.install");
			put(".sit", "application/x-stuffit");
			put(".skd", "application/x-Koan");
			put(".skm", "application/x-Koan");
			put(".skp", "application/x-Koan");
			put(".skt", "application/x-Koan");
			put(".slc", "application/x-salsa");
			put(".smd", "audio/x-smd");
			put(".smi", "application/smil");
			put(".smil", "application/smil");
			put(".smp", "application/studiom");
			put(".smz", "audio/x-smd");
			put(".snd", "audio/basic");
			put(".spc", "application/x-pkcs7-certificates");
			put(".spl", "application/futuresplash");
			put(".spr", "application/x-sprite");
			put(".sprite", "application/x-sprite");
			put(".sdp", "application/sdp");
			put(".spt", "application/x-spt");
			put(".src", "application/x-wais-source");
			put(".sst", "application/vnd.ms-pkicertstore");
			put(".stk", "application/hyperstudio");
			put(".stl", "application/vnd.ms-pkistl");
			put(".stm", "text/html");
			put(".svg", "image/svg+xml");
			put(".sv4cpio", "application/x-sv4cpio");
			put(".sv4crc", "application/x-sv4crc");
			put(".svf", "image/vnd");
			put(".svg", "image/svg+xml");
			put(".svh", "image/svh");
			put(".svr", "x-world/x-svr");
			put(".swf", "application/x-shockwave-flash");
			put(".swfl", "application/x-shockwave-flash");
			put(".t", "application/x-troff");
			put(".tad", "application/octet-stream");
			put(".talk", "text/x-speech");
			put(".tar", "application/x-tar");
			put(".taz", "application/x-tar");
			put(".tbp", "application/x-timbuktu");
			put(".tbt", "application/x-timbuktu");
			put(".tcl", "application/x-tcl");
			put(".tex", "application/x-tex");
			put(".texi", "application/x-texinfo");
			put(".texinfo", "application/x-texinfo");
			put(".tgz", "application/x-compressed");
			put(".thm", "application/vnd.eri.thm");
			put(".tif", "image/tiff");
			put(".tiff", "image/tiff");
			put(".tki", "application/x-tkined");
			put(".tkined", "application/x-tkined");
			put(".toc", "application/toc");
			put(".toy", "image/toy");
			put(".tr", "application/x-troff");
			put(".trk", "x-lml/x-gps");
			put(".trm", "application/x-msterminal");
			put(".tsi", "audio/tsplayer");
			put(".tsp", "application/dsptype");
			put(".tsv", "text/tab-separated-values");
			put(".ttf", "application/octet-stream");
			put(".ttz", "application/t-time");
			put(".txt", "text/plain");
			put(".uls", "text/iuls");
			put(".ult", "audio/x-mod");
			put(".ustar", "application/x-ustar");
			put(".uu", "application/x-uuencode");
			put(".uue", "application/x-uuencode");
			put(".vcd", "application/x-cdlink");
			put(".vcf", "text/x-vcard");
			put(".vdo", "video/vdo");
			put(".vib", "audio/vib");
			put(".viv", "video/vivo");
			put(".vivo", "video/vivo");
			put(".vmd", "application/vocaltec-media-desc");
			put(".vmf", "application/vocaltec-media-file");
			put(".vmi", "application/x-dreamcast-vms-info");
			put(".vms", "application/x-dreamcast-vms");
			put(".vox", "audio/voxware");
			put(".vqe", "audio/x-twinvq-plugin");
			put(".vqf", "audio/x-twinvq");
			put(".vql", "audio/x-twinvq");
			put(".vre", "x-world/x-vream");
			put(".vrml", "x-world/x-vrml");
			put(".vrt", "x-world/x-vrt");
			put(".vrw", "x-world/x-vream");
			put(".vts", "workbook/formulaone");
			put(".wav", "audio/x-wav");
			put(".wax", "audio/x-ms-wax");
			put(".wbmp", "image/vnd.wap.wbmp");
			put(".wcm", "application/vnd.ms-works");
			put(".wdb", "application/vnd.ms-works");
			put(".web", "application/vnd.xara");
			put(".wi", "image/wavelet");
			put(".wis", "application/x-InstallShield");
			put(".wks", "application/vnd.ms-works");
			put(".wm", "video/x-ms-wm");
			put(".wma", "audio/x-ms-wma");
			put(".wmd", "application/x-ms-wmd");
			put(".wmf", "application/x-msmetafile");
			put(".wml", "text/vnd.wap.wml");
			put(".wmlc", "application/vnd.wap.wmlc");
			put(".wmls", "text/vnd.wap.wmlscript");
			put(".wmlsc", "application/vnd.wap.wmlscriptc");
			put(".wmlscript", "text/vnd.wap.wmlscript");
			put(".wmv", "audio/x-ms-wmv");
			put(".wmx", "video/x-ms-wmx");
			put(".wmz", "application/x-ms-wmz");
			put(".wpng", "image/x-up-wpng");
			put(".wps", "application/vnd.ms-works");
			put(".wpt", "x-lml/x-gps");
			put(".wri", "application/x-mswrite");
			put(".wrl", "x-world/x-vrml");
			put(".wrz", "x-world/x-vrml");
			put(".ws", "text/vnd.wap.wmlscript");
			put(".wsc", "application/vnd.wap.wmlscriptc");
			put(".wv", "video/wavelet");
			put(".wvx", "video/x-ms-wvx");
			put(".wxl", "application/x-wxl");
			put(".x-gzip", "application/x-gzip");
			put(".xaf", "x-world/x-vrml");
			put(".xar", "application/vnd.xara");
			put(".xbm", "image/x-xbitmap");
			put(".xdm", "application/x-xdma");
			put(".xdma", "application/x-xdma");
			put(".xdw", "application/vnd.fujixerox.docuworks");
			put(".xht", "application/xhtml+xml");
			put(".xhtm", "application/xhtml+xml");
			put(".xhtml", "application/xhtml+xml");
			put(".xla", "application/vnd.ms-excel");
			put(".xlc", "application/vnd.ms-excel");
			put(".xll", "application/x-excel");
			put(".xlm", "application/vnd.ms-excel");
			put(".xls", "application/vnd.ms-excel");
			put(".xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
			put(".xlt", "application/vnd.ms-excel");
			put(".xlw", "application/vnd.ms-excel");
			put(".xm", "audio/x-mod");
			put(".xml","text/plain");
			put(".xml","application/xml");
			put(".xmz", "audio/x-mod");
			put(".xof", "x-world/x-vrml");
			put(".xpi", "application/x-xpinstall");
			put(".xpm", "image/x-xpixmap");
			put(".xsit", "text/xml");
			put(".xsl", "text/xml");
			put(".xul", "text/xul");
			put(".xwd", "image/x-xwindowdump");
			put(".xyz", "chemical/x-pdb");
			put(".yz1", "application/x-yz1");
			put(".z", "application/x-compress");
			put(".zac", "application/x-zaurus-zac");
			put(".zip", "application/zip");
			put(".json", "application/json");
		}
	};
	
	@SuppressWarnings("serial")
	public final static List<String> NO_CONNECTION_FILE_LW=new ArrayList<String>(){//需要connection
		{
			add("dbtable.html");
		}
	};
}

